package com.blkj.iam.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @Description: 数据同步表
 * @Author: jeecg-boot
 * @Date: 2025-04-09
 * @Version: V1.0
 */
@Data
@TableName("sys_sync_data")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "数据同步表")
public class SysSyncData {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    /**
     * 创建者
     */
    @Schema(description = "创建者")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 应用ID
     */
    @Schema(description = "应用ID")
    private String appId;

    /**
     * 应用名称
     */
    @Schema(description = "应用名称")
    private String appName;

    /**
     * 同步接口
     */
    @Schema(description = "同步接口")
    private String url;

    /**
     * 同步数据
     */
    @Schema(description = "同步数据")
    private String data;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 错误信息
     */
    @Schema(description = "错误信息")
    private String error;
}
